﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true" CodeBehind="Treasury.aspx.cs" Inherits="School.Pages.Accounting.Treasury" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <h1>يومية الخزينة</h1>
    <table width="100%">
    <!--
        <tr>
            <td style="width: 50px">من</td>
            <td>
                <asp:TextBox ID="TxtFrom" runat="server"></asp:TextBox>
                <asp:CalendarExtender ID="TxtFrom_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="TxtFrom" Format="yyyy-MM-dd">
                </asp:CalendarExtender>
            </td>
        </tr>
        <tr>
            <td style="width: 50px">إلى</td>
            <td>
                <asp:TextBox ID="TxtTo" runat="server"></asp:TextBox>
                <asp:CalendarExtender ID="TxtTo_CalendarExtender" runat="server" 
                    Enabled="True" TargetControlID="TxtTo" Format="yyyy-MM-dd">
                </asp:CalendarExtender>
            </td>
        </tr>
        -->
        <tr>
            <td style="width: 50px">نوع الدفع</td>
            <td>
                <asp:ListBox ID="ListBox1" runat="server" Rows="10"></asp:ListBox>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Button ID="Button1" runat="server" Text="عرض" onclick="Button1_Click" />
            </td>
        </tr>
    </table>

    <asp:Panel ID="Panel1" runat="server" Visible="false">
    <div>الإجمالى : 
        <asp:Label ID="lblTotal" runat="server" Text=""></asp:Label></div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False"
    Width="100%" CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter" FooterStyle-CssClass="GridHeaderFooter"
    PagerStyle-CssClass="GridPager" 
        AlternatingRowStyle-CssClass="GridItemAltername">
            <AlternatingRowStyle CssClass="GridItemAltername" />
            <Columns>
                <asp:BoundField DataField="Number" HeaderText="رقم الإيصال" />
                <asp:BoundField DataField="Date" HeaderText="تاريخ الإيصال" />
                <asp:BoundField DataField="Expense_Name" HeaderText="نوع الإيراد" />
                <asp:BoundField DataField="Value" HeaderText="مبلغ المسدد" 
                    SortExpression="Value" />
                <asp:BoundField DataField="Student_Number" HeaderText="رقم الطالب" />
                <asp:BoundField DataField="SName" HeaderText="اسم الطالب" />
            </Columns>
            <FooterStyle CssClass="GridHeaderFooter" />
            <HeaderStyle CssClass="GridHeaderFooter" />
            <PagerStyle CssClass="GridPager" />
        </asp:GridView>
    </asp:Panel>
</asp:Content>
